package com.frontop.system.modules.sale.model;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 二维码扫码统计
 * </p>
 *
 * @author YangJia
 * @since 2022-04-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="SaleQrStatis对象", description="二维码扫码统计")
public class SaleQrStatis implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "二维码uuid")
    @TableField("qr_uuid")
    private String qrUuid;

    @ApiModelProperty(value = "分享者uuid")
    @TableField("sale_uuid")
    private String saleUuid;

    @ApiModelProperty(value = "扫码者ip")
    private String ip;

    @ApiModelProperty(value = "扫码者省份")
    private String pro;

    @ApiModelProperty(value = "扫码者城市")
    private String city;
    @ApiModelProperty(value = "扫码客户端类型  手机、电脑、平板")
    private String client;

    @ApiModelProperty(value = "操作系统类型")
    private String os;

    @ApiModelProperty(value = "浏览器类型")
    private String browser;


    @ApiModelProperty(value = "扫码者手机号")
    private String phone;

    @TableField(exist = false)
    private String organizationName;
    @TableField(exist = false)
    private String saleName;
    @TableField(exist = false)
    private String qrName;


    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")//set
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")//get
    @ApiModelProperty(value = "扫码时间")
    private Date createTime;
}